package com.bank6677.sync.csm.domain.old;

import java.util.Date;
import java.util.List;

public class ServiceInstitution {
    private String serviceInstitutionId;
    private String serviceInstitutionName;
    private String parentId;
    private String linkMan;
    private String linkPhone;
    private String linkMobile;
    private Date createDt;
    private Date updateDt;
    private Integer addAdmin;
    private Long belongsAreaId;
    private String detailAddress;
    private String postcode;
    private Integer isuseStatus;
    private String linkEmail;
    private Integer level;
    private Integer lft;
    private Integer rgt;
    private Integer leaf;
    private Integer status;
    private String spell;
    private String imageName;
    private String isShow;
    private String logoImage;
    private String institutionType;
    private Integer adminId;
    private String institutionIntroduce;
//    private List<InstitutionAreas> areasList;
//    private InstitutionAccountInfo  accountInfo;//机构帐户信息
//    private InstitutionTargetInfo   targetInfo;//机构指标信息
    private String sendType;//区别由于某些原因不能派发给机构单子,1正常派发2头寸不够,3没开通业务类型4没开通所受理业务区域
    private String realName;

    public Integer getIsuseStatus() {
		return isuseStatus;
	}

	public void setIsuseStatus(Integer isuseStatus) {
		this.isuseStatus = isuseStatus;
	}
    
	public String getSendType() {
		return sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

//	public InstitutionTargetInfo getTargetInfo() {
//		return targetInfo;
//	}
//
//	public void setTargetInfo(InstitutionTargetInfo targetInfo) {
//		this.targetInfo = targetInfo;
//	}
//
//	public InstitutionAccountInfo getAccountInfo() {
//		return accountInfo;
//	}
//
//	public void setAccountInfo(InstitutionAccountInfo accountInfo) {
//		this.accountInfo = accountInfo;
//	}
//
//	public List<InstitutionAreas> getAreasList() {
//		return areasList;
//	}
//
//	public void setAreasList(List<InstitutionAreas> areasList) {
//		this.areasList = areasList;
//	}

    public String getServiceInstitutionId() {
        return serviceInstitutionId;
    }

    public void setServiceInstitutionId(String serviceInstitutionId) {
        this.serviceInstitutionId = serviceInstitutionId == null ? null : serviceInstitutionId.trim();
    }

    public String getServiceInstitutionName() {
        return serviceInstitutionName;
    }

    public void setServiceInstitutionName(String serviceInstitutionName) {
        this.serviceInstitutionName = serviceInstitutionName == null ? null : serviceInstitutionName.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan == null ? null : linkMan.trim();
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone == null ? null : linkPhone.trim();
    }

    public String getLinkMobile() {
        return linkMobile;
    }

    public void setLinkMobile(String linkMobile) {
        this.linkMobile = linkMobile == null ? null : linkMobile.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Integer getAddAdmin() {
        return addAdmin;
    }

    public void setAddAdmin(Integer addAdmin) {
        this.addAdmin = addAdmin;
    }

    public Long getBelongsAreaId() {
        return belongsAreaId;
    }

    public void setBelongsAreaId(Long belongsAreaId) {
        this.belongsAreaId = belongsAreaId;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress == null ? null : detailAddress.trim();
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode == null ? null : postcode.trim();
    }

    public String getLinkEmail() {
        return linkEmail;
    }

    public void setLinkEmail(String linkEmail) {
        this.linkEmail = linkEmail == null ? null : linkEmail.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getLft() {
        return lft;
    }

    public void setLft(Integer lft) {
        this.lft = lft;
    }

    public Integer getRgt() {
        return rgt;
    }

    public void setRgt(Integer rgt) {
        this.rgt = rgt;
    }

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell == null ? null : spell.trim();
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName == null ? null : imageName.trim();
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow == null ? null : isShow.trim();
    }

    public String getLogoImage() {
        return logoImage;
    }

    public void setLogoImage(String logoImage) {
        this.logoImage = logoImage == null ? null : logoImage.trim();
    }

    public String getInstitutionType() {
        return institutionType;
    }

    public void setInstitutionType(String institutionType) {
        this.institutionType = institutionType == null ? null : institutionType.trim();
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getInstitutionIntroduce() {
        return institutionIntroduce;
    }

    public void setInstitutionIntroduce(String institutionIntroduce) {
        this.institutionIntroduce = institutionIntroduce == null ? null : institutionIntroduce.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof ServiceInstitution)) {
            return false;
        }
        ServiceInstitution other = (ServiceInstitution) that;
        return this.getServiceInstitutionId() == null ? other == null : this.getServiceInstitutionId().equals(other.getServiceInstitutionId())
            && this.getServiceInstitutionName() == null ? other == null : this.getServiceInstitutionName().equals(other.getServiceInstitutionName())
            && this.getParentId() == null ? other == null : this.getParentId().equals(other.getParentId())
            && this.getLinkMan() == null ? other == null : this.getLinkMan().equals(other.getLinkMan())
            && this.getLinkPhone() == null ? other == null : this.getLinkPhone().equals(other.getLinkPhone())
            && this.getLinkMobile() == null ? other == null : this.getLinkMobile().equals(other.getLinkMobile())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getAddAdmin() == null ? other == null : this.getAddAdmin().equals(other.getAddAdmin())
            && this.getBelongsAreaId() == null ? other == null : this.getBelongsAreaId().equals(other.getBelongsAreaId())
            && this.getDetailAddress() == null ? other == null : this.getDetailAddress().equals(other.getDetailAddress())
            && this.getPostcode() == null ? other == null : this.getPostcode().equals(other.getPostcode())
            && this.getLinkEmail() == null ? other == null : this.getLinkEmail().equals(other.getLinkEmail())
            && this.getLevel() == null ? other == null : this.getLevel().equals(other.getLevel())
            && this.getLft() == null ? other == null : this.getLft().equals(other.getLft())
            && this.getRgt() == null ? other == null : this.getRgt().equals(other.getRgt())
            && this.getLeaf() == null ? other == null : this.getLeaf().equals(other.getLeaf())
            && this.getStatus() == null ? other == null : this.getStatus().equals(other.getStatus())
            && this.getSpell() == null ? other == null : this.getSpell().equals(other.getSpell())
            && this.getImageName() == null ? other == null : this.getImageName().equals(other.getImageName())
            && this.getIsShow() == null ? other == null : this.getIsShow().equals(other.getIsShow())
            && this.getLogoImage() == null ? other == null : this.getLogoImage().equals(other.getLogoImage())
            && this.getInstitutionType() == null ? other == null : this.getInstitutionType().equals(other.getInstitutionType())
            && this.getAdminId() == null ? other == null : this.getAdminId().equals(other.getAdminId())
            && this.getIsuseStatus() == null ? other == null : this.getIsuseStatus().equals(other.getIsuseStatus())
            && this.getInstitutionIntroduce() == null ? other == null : this.getInstitutionIntroduce().equals(other.getInstitutionIntroduce());
        
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getServiceInstitutionId() != null) {
            hash *= getServiceInstitutionId().hashCode();
        }
        if (getServiceInstitutionName() != null) {
            hash *= getServiceInstitutionName().hashCode();
        }
        if (getParentId() != null) {
            hash *= getParentId().hashCode();
        }
        if (getLinkMan() != null) {
            hash *= getLinkMan().hashCode();
        }
        if (getLinkPhone() != null) {
            hash *= getLinkPhone().hashCode();
        }
        if (getLinkMobile() != null) {
            hash *= getLinkMobile().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getAddAdmin() != null) {
            hash *= getAddAdmin().hashCode();
        }
        if (getBelongsAreaId() != null) {
            hash *= getBelongsAreaId().hashCode();
        }
        if (getDetailAddress() != null) {
            hash *= getDetailAddress().hashCode();
        }
        if (getPostcode() != null) {
            hash *= getPostcode().hashCode();
        }
        if (getLinkEmail() != null) {
            hash *= getLinkEmail().hashCode();
        }
        if (getLevel() != null) {
            hash *= getLevel().hashCode();
        }
        if (getLft() != null) {
            hash *= getLft().hashCode();
        }
        if (getRgt() != null) {
            hash *= getRgt().hashCode();
        }
        if (getLeaf() != null) {
            hash *= getLeaf().hashCode();
        }
        if (getStatus() != null) {
            hash *= getStatus().hashCode();
        }
        if (getSpell() != null) {
            hash *= getSpell().hashCode();
        }
        if (getImageName() != null) {
            hash *= getImageName().hashCode();
        }
        if (getIsShow() != null) {
            hash *= getIsShow().hashCode();
        }
        if (getLogoImage() != null) {
            hash *= getLogoImage().hashCode();
        }
        if (getInstitutionType() != null) {
            hash *= getInstitutionType().hashCode();
        }
        if (getAdminId() != null) {
            hash *= getAdminId().hashCode();
        }
        if (getIsuseStatus() != null) {
            hash *= getIsuseStatus().hashCode();
        }
        if (getInstitutionIntroduce() != null) {
            hash *= getInstitutionIntroduce().hashCode();
        }
        return hash;
    }
}